//switch语句的case穿透现象
//需求：键盘录入星期数输工作日，休息日
import java.util.Scanner;
public class Switch2 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int week = sc.nextInt();
        switch (week){
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                System.out.println("工作日");
                break;
            case 6:
            case 7:
                System.out.println("休息日");
                break;
            default:
                System.out.println("输入有误");
                break;
        }
    }
}
//若switch语句中case省略了break语句就会开始case穿透